Is there a way to use p q r parameters with KMotion_dotNet.MCODE_TYPE.M_Action_Callback, like this:
M107 P1 (M_Action_Callback, pass 1 to user callback)
I tried setting parameters and then doing getUserData from the callback to check the parameter values, but the user data values don't seem to be set for M_Action_Callback codes.
I am able to work around this by setting the parameter value in a previous m-code with KMotion_dotNet.MCODE_TYPE.M_Action_Program:
m106 P1 (M_Action_Program, sets the value which can be read with getUserData)
m106 (M_Action_Callback, invokes callback which reads parameter using getUserData, does some stuff, and returns control to kflop)
but I would rather do it with one code.
Thanks,
Toby